package com.money.tracker.common.utils;


import com.google.common.base.Throwables;
import lombok.extern.slf4j.Slf4j;

/**
 * 异常 util
 *
 * @author zhangshuai
 * @date 2024/10/31
 */
@Slf4j
public class ExceptionUtil {

    public static void print(Throwable e) {
        log.error(Throwables.getStackTraceAsString(e));
    }

    public static String printSummary(Throwable e) {
        return e.getMessage();
    }
}
